package FinalProject

class Game implements Comparable {
    String name
    String releaseDate

    static hasMany = [reviews: Review]
    static belongsTo = [platform: Platform]

    static searchable = true;

    static constraints = {
        reviews(nullable: true)
        platform(nullable:true)
    }

    int compareTo(Object o) {
        return name.compareTo(o.name)
    }
}
